from selenium import webdriver
chromeOptions = webdriver.ChromeOptions()
#设置代理
# =两边不能有空格
chromeOptions.add_argument("--proxy-server=http://111.164.173.39:8118")
chromeOptions.add_argument("--headless")#无界面形态
chromeOptions.add_argument("--disable-gpu")#无界面形态

browser = webdriver.Chrome(chrome_options=chromeOptions)
browser.get("http://httpbin.org/ip")
print(browser.page_source)